package com.example.shop.order.dto;

import com.example.shop.order.enums.OrderState;
import com.example.shop.pojo.Courier;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderBrowseInfo {

    /**
     * 该订单的唯一标识
     */
    protected Long orderId;

    /**
     * 订单归属用户
     */
    protected Long userId;

    /**
     * 购买的商品信息
     */
    protected OrderGoodsInfo goodsInfo;

    /**
     * 订单状态
     */
    protected OrderState orderState;

    /**
     * 用户购买的商品型号
     */
    protected String userPurchasedGoodsClass;

    /**
     * 用户购买该型号的数量
     */
    protected int userPurchasedNumber;

    /**
     * 用户的购买该商品的次数
     */
    protected int userBuyTime;

    /**
     * 实际付款金额
     */
    protected int realPay;

    @Override
    public String toString() {
        return "OrderBrowseInfo{" +
                "userId=" + userId +
                ", orderId=" + orderId +
                ", goodsInfo=" + goodsInfo +
                ", orderState=" + orderState +
                ", userPurchasedGoodsClass='" + userPurchasedGoodsClass + '\'' +
                ", userPurchasedNumber=" + userPurchasedNumber +
                ", userBuyTime=" + userBuyTime +
                ", realPay=" + realPay +
                '}';
    }
}
